#pragma once
#include <string>
#include <fstream>
#include <vector>
namespace xpam
{
    namespace frame
    {
        template<class tpixel>
        void load_raw(const std::string & location, std::vector<tpixel> & dst, int & width, int & height)
        {
            std::ifstream fin(loation.c_str(), std::ios::bin);
            fin.read(&width, sizeof(int));
            fin.read(&height, sizeof(int));
            dst.resize(width * height);
            fin.read(&dst[0], width * height * sizeof(tpixel));
            fin.close();
        }
    }
}